package com.xuexiang.xuidemo.db;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "search_record")
public class SearchRecord extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer searchRecordId;
    /**
     * 搜索内容
     */
    private String content;

    /**
     * 搜索时间
     */
    private long time;

    public Integer getSearchRecordId() {
        return searchRecordId;
    }

    public void setSearchRecordId(Integer searchRecordId) {
        this.searchRecordId = searchRecordId;
    }

    public String getContent() {
        return content;
    }

    public SearchRecord setContent(String content) {
        this.content = content;
        return this;
    }

    public long getTime() {
        return time;
    }

    public SearchRecord setTime(long time) {
        this.time = time;
        return this;
    }

    @Override
    public String toString() {
        return "QueryRecord{" +
                "Id=" + searchRecordId +
                ", content='" + content + '\'' +
                ", time=" + time +
                '}';
    }
}
